package com.poisson;

import javax.swing.*;
import java.awt.*;

/**
 * 生成输入框框架的类
 */
public class PoissonFrame {

    private static JFrame frame;

    public static JFrame getFrame() {
        if (frame == null) {
            // 创建 JFrame 实例
            frame = new JFrame("泊松随机数");
            // Setting the width and height of frame
            frame.setSize(1000, 1000);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setLayout(new GridLayout(2, 1));
        }
        return frame;
    }
}
